//
//  UIView+Animation.h
//  iOS-Category
//
//  Created by 庄BB的MacBook on 16/7/20.
//  Copyright © 2016年 BBFC. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Animation)<CAAnimationDelegate>

@property(nonatomic,copy)void(^completeBlock)();


/**
 晃动
 */
- (void)shakeAnimation;

- (void)shakeAnimationWithRepeatCount:(NSInteger)count duration:(CGFloat)duration;

/**
 弹簧
 */
- (void)springingAnimation;


/**
 旋转180度
 */
- (void)trans180DegreeAnimation;



/**
 抛物动画

 @param startPoint 起始点
 @param endPoint 结束点
 @param maxHeightPoint 最高点
 @param duration 持续时间
 @param completedBlock 完成动画后的block回调
 */
- (void)throwFromPoint:(CGPoint)startPoint
              endPoint:(CGPoint)endPoint
        maxHeightPoint:(CGFloat)maxHeightPoint
              duration:(CGFloat)duration
        completedBlock:(void(^)())completedBlock;


/**
 点赞
 */
- (void)praiseAnimation;
@end
